package test;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class testMidlet extends MIDlet {

	private Display display;
	private Alert alert;
	private SayHello sayHello;
	
	public testMidlet() {
		display = Display.getDisplay(this);
		sayHello = new SayHello();
	}
	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {

	}
	protected void pauseApp() {

	}
	protected void startApp() throws MIDletStateChangeException {
		String s = sayHello.say(); 
	    alert = new Alert("Hello",s,null,AlertType.INFO); 
	    alert.setTimeout(Alert.FOREVER); 
	    display.setCurrent(alert); 
	}
}
